package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-外呼管理-外呼任务明细
 * </p>
 *
 * @author 白强
 * @since 2022-03-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_task_detail")
@ApiModel(value="CrmCallTaskDetail对象", description="客户管理-外呼管理-外呼任务明细")
public class CrmCallTaskDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "呼叫任务ID")
    @TableField("crm_call_task_id")
    private Integer crmCallTaskId;

    @ApiModelProperty(value = "呼叫任务名称")
    @TableField("crm_call_task_name")
    private String crmCallTaskName;

    @ApiModelProperty(value = "客户ID")
    @TableField("crm_id")
    private Integer crmId;

    @ApiModelProperty(value = "客户名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "联系人ID")
    @TableField("link_man_id")
    private Integer linkManId;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("link_man_name")
    private String linkManName;

    @ApiModelProperty(value = "性别")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(value = "办公电话")
    @TableField("office_phone")
    private String officePhone;

    @ApiModelProperty(value = "手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty(value = "上次拨打状态 0.未拨打 1.已拨打")
    @TableField("last_call_status")
    private Boolean lastCallStatus;

    @ApiModelProperty(value = "上次接通状态")
    @TableField("last_call_result")
    private Integer lastCallResult;

    @ApiModelProperty(value = "上次拨打时间")
    @TableField("last_call_time")
    private LocalDateTime lastCallTime;

    @ApiModelProperty(value = "呼叫次数")
    @TableField("call_count")
    private Integer callCount;

    @ApiModelProperty(value = "呼叫接通数量")
    @TableField("connect_count")
    private Integer connectCount;

    @ApiModelProperty(value = "总通话时长（秒）")
    @TableField("total_talk_time")
    private Integer totalTalkTime;

    @ApiModelProperty(value = "加入时间")
    @TableField("add_time")
    private LocalDateTime addTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;


}
